package com.gs.weather.dao.mapper;

import com.gs.weather.entity.DisasterInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Repository
public interface DisasterInfoMapper {

    //添加灾情信息
    void addDisasterInfo(DisasterInfo disasterInfo);

    //更新灾情信息
    void updateDisasterInfo(DisasterInfo disasterInfo);

    /*全局，时间，地名*/
    List<DisasterInfo> queryAllDisasterInfoWithXsAreaNameOrTime(@Param("name") String name, @Param("time") String time);

    //根据id查询灾情信息
    DisasterInfo queryDisasterInfoById(long id);

    //删除灾情信息
    void deleteDisasterInfo(long id);

}
